/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "辅材现存量",TableName = "View_辅材现存量")]
    public partial class View_辅材现存量:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Display(Name ="时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime 时间 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="工厂编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string 工厂编号 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="仓库编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string 仓库编号 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="库位编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string 库位编号 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="存货编号")]
       [MaxLength(50)]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid 存货编号 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="规格型号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string 规格型号 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="批号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string 批号 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="主数量")]
       [DisplayFormat(DataFormatString="38,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 主数量 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="辅数量")]
       [DisplayFormat(DataFormatString="38,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 辅数量 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="存货名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 存货名称 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="计量单位")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string 计量单位 { get; set; }

       
    }
}